package com.ccb.sc.message.convert;

import com.ccb.sc.message.vo.MessageVo;
import com.ccb.sc.common.modules.message.entity.Message;
import org.mapstruct.Mapper;

import java.util.List;

import static org.mapstruct.factory.Mappers.getMapper;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-16
 */
@Mapper
public interface MessageConvert {

    MessageConvert INSTANCE = getMapper(MessageConvert.class);

    List<MessageVo> entity2ListVo(List<Message> list);
}
